import XEUtils from "xe-utils";
// import Lodash from "lodash";

export class StringUtils {

    public static checkSize(value: string, min: number, max: number): boolean {

        if (XEUtils.isNull(value)) {
            return false;
        }
        const trimValue = XEUtils.trim(value);
        return !(XEUtils.getSize(trimValue) < min || XEUtils.getSize(trimValue) > max);
    }
}
